/*
 * ClientSocket.h
 *
 * Author: Grupo Nro.
 */

#ifndef CLIENTSOCKET_H_
#define CLIENTSOCKET_H_

#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <cstring>
#include "ComunicacionException.h"
#include <iostream>

//Socket
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <arpa/inet.h>

using std::string;
using std::cerr;
using std::endl;

class ClientSocket {
private:
	int sockfd;
	string ip_servidor;
	int puerto_servidor;

public:
	ClientSocket(string ip_servidor, int puerto_servidor);
	virtual ~ClientSocket();
	int getSockfd();
	void conectar();
	void shutdownConexion();
	void matarConexion();
};

#endif /* CLIENTSOCKET_H_ */
